package com.unittec.drainage.sdk.manage.enums;

/**
 * @author Jason
 * @date 2020/10/20
 */
public enum WaterheadUserPriceCategoryEnum {

    /**
     * 非居民
     */
    price_category_0("0", "非居民"),
    /**
     * 居民
     */
    price_category_1("1", "居民");

    private String key;
    private String value;

    private WaterheadUserPriceCategoryEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return this.key;
    }

    public String getValue() {
        return this.value;
    }

    public static WaterheadUserPriceCategoryEnum convertLevel(String key) {
        WaterheadUserPriceCategoryEnum[] list = values();
        for (WaterheadUserPriceCategoryEnum planType : list) {
            if (planType.getKey().equals(key)) {
                return planType;
            }
        }
        return null;
    }

}
